# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=zug
pkgver=0.1.1
pkgrel=1
pkgdesc='Transducers for C++'
arch=(any)
url='https://sinusoid.es/zug/'
license=(Boost)
makedepends=(catch2
             cmake)
source=(https://github.com/arximboldi/zug/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('1b9c8f962e40baa6f0c6af35f957444850063d550078a3ebd0227727b8ef193c')

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
